import request from '@/utils/request';

/**
 * 查询特改订单列表
 */
export function queryXBOMListAPI(data: any) {
  return request('/bommgmt/specialOrder/findPageByCondition', {
    method: 'POST',
    data,
  });
}

/**
 * 复制 - 查询特改订单列表
 */
export function findByBasicPno18(data: any) {
  return request('/bommgmt/specialOrder/findByBasicPno18', {
    method: 'POST',
    data,
  });
}

/**
 * 接收订单
 */
export function doReceiveOrderById(data: any) {
  return request(
    '/bommgmt/specialOrder/receiveSpecialOrder',
    {
      method: 'POST',
      data,
    },
    { showSuccess: true, successMessage: '操作成功' },
  );
}

// 创建xbom对象
export function createXbomAPI(data: any) {
  return request(
    '/bommgmt/xbomObject/createXbomObject',
    {
      method: 'POST',
      data,
    },
    {
      showSuccess: true,
    },
  );
}

// 获取xbom对象
export function getXbomApi(data: any) {
  return request('/bommgmt/xbomObject/getXbomObjectByXbomId', {
    method: 'POST',
    data,
  });
}
